import request from '@/utils/request'

//货物出仓#权限标识：zhcloud:hwcc:list
export function listwarehouseOut(data, params) {
    return request({
        url: '/storage/hwcc/list',
        method: 'post',
        data: data,
        params:params
    })
}

//货物出仓仓位
export function selectPosition2(data) {
    return request({
        url: `/storage/category/selectPosition2/${data.spckid}`,
        method: 'post',
        data: data
    })
}

//货物出仓批量审核
export function warehouseOutAudit(data) {
    return request({
        url: '/storage/hwcc/audit',
        method: 'post',
        data: data
    })
}

//货物出仓->详细->驳回
export function warehouseOutReject(data) {
    return request({
        url: `/storage/hwcc/reject/${data.dzid}`,
        method: 'post',
        data: data
    })
}

//货物出仓修改信息
export function warehouseOutModifyInfo(data) {
    return request({
        url: '/storage/hwcc/modifyInfo',
        method: 'post',
        data: data
    })
}

//货物出仓->详细
export function getWarehouseOutDetails(data) {
    return request({
      url: `/storage/hwcc/detail/${data.dzid}`,
      method: 'post',
      data: data
    })
}

//货物出仓->详细->删除
export function warehouseOutDelete(data) {
    return request({
      url: '/storage/hwcc/del',
      method: 'post',
      data: data
    })
}

//货物出仓->详细->历史记录
export function warehouseOutHistoryRecord(data) {
    return request({
        url: `/storage/hwcc/historyRecord/${data.spdzid}`,
        method: 'post',
        data: data
    })
}

//货物出仓->详细->客户
export function selectCustomer(data, params) {
    return request({
        url: '/storage/hwcc/selectCustomer',
        method: 'post',
        data: data,
        params:params
    })
}

//货物出仓->现场出仓->选择客户->选择库存
export function selectStock(data, params) {
    return request({
        url: '/storage/hwcc/selectStock',
        method: 'post',
        data: data,
        params:params
    })
}

//货物出仓->现场出仓->选择库存
export function selectStock1(data, params) {
    return request({
        url: '/storage/hwcc/selectStock1',
        method: 'post',
        data: data,
        params:params
    })
}

//货物出仓->详细->新增出仓->选择库存
export function selectStock2(data, params) {
    return request({
        url: '/storage/hwcc/selectStock2',
        method: 'post',
        data: data,
        params:params
    })
}

//货物出仓->现场出仓->选择客户->客户
export function selectClient(data) {
    return request({
        url: '/storage/shop/selectClient',
        method: 'post',
        data: data
    })
}

//货物出仓->现场出仓->出仓
export function warehouseOutAdd(data) {
    return request({
        url: '/storage/hwcc/add',
        method: 'post',
        data: data
    })
}

//货物出仓->详细->新增出仓->出仓#权限标识：zhcloud:hwcc:add
export function warehouseOutAdditionalOut(data) {
    return request({
        url: '/storage/hwcc/additionalOut',
        method: 'post',
        data: data
    })
}

//货物出仓总览
export function warehouseOutOverview(data, params) {
    return request({
      url: '/storage/hwcc/overview',
      method: 'post',
      data: data,
      params:params
    })
}

//货物出仓总览->已删除记录
export function warehouseOutOverviewRecordDeleted(data,params) {
    return request({
      url: '/storage/hwcc/recordDeleted',
      method: 'post',
      data: data,
      params:params
    })
}

//仓储服务->普通货物操作->货物出仓->详细->退货->仓库
export function warehouseOutSplitOrder(data) {
    return request({
      url: '/storage/hwcc/seperate',
      method: 'post',
      data: data
    })
}

//货物出仓->详细->退货-提交
export function warehouseOutReturnOfGoods(data) {
    return request({
      url: '/storage/hwcc/returnOfGoods',
      method: 'post',
      data: data
    })
}

//货物出仓->详细->修改->修改#权限标识：zhcloud:hwcc:modify
export function warehouseOutModify(data) {
    return request({
      url: '/storage/hwcc/modify',
      method: 'post',
      data: data
    })
}

//仓储服务->【普通货物操作->【货物入仓总览】/【货物出仓总览】/【货权转移总览】】/【仓库整租->费用结算】->仓库
export function warehouseOutRecycleBin(data,params) {
    return request({
      url: '/storage/hwcc/recycleBin',
      method: 'post',
      data: data,
      params:params
    })
}

//调试货物入仓->回收站->详细#权限标识：zhcloud:hwrc:detail
export function getWarehouseOutRecycleBinDetail(data) {
    return request({
      url: `/storage/hwcc/recycleBinDetail/${data.spdzid}/${data.spkhmcid}`,
      method: 'post',
      data: {}
    })
}

//货物入仓->回收站->还原#权限标识：zhcloud:hwrc:modify
export function warehouseOutRecycleBinRestore(data) {
    return request({
      url: `/storage/hwcc/reduction`,
      method: 'post',
      data: data
    })
}

//货物出仓->打印#权限标识：zhcloud:hwcc:print
export function getWarehouseOutPrint(data) {
    return request({
      url: `/storage/hwcc/print/${data.dzid}`,
      method: 'post',
      data: data
    })
}











